public class test {
    public static int max2(int a,int b){
        if(a>b)
        {
            return a;
        }
        else
            return b;
    }
    public static double max2(double a,double b) {
        if(a>b)
        {
            return a;
        }
        else
            return b;
    }
    public static double max3(double a,double b,double c){
        if(max2(a,b)>c){
            return c;
        }
        else return max2(a,b);
    }
    public static void main(String[] args) {
        System.out.println(max2(15,6));
        System.out.println(max3(20.0,30.0,45.0));
    }
}
